package com.zy.ai.langgraph4j.node;

import lombok.extern.slf4j.Slf4j;
import org.bsc.langgraph4j.action.AsyncNodeAction;
import org.bsc.langgraph4j.prebuilt.MessagesState;

import java.util.HashMap;

import static org.bsc.langgraph4j.action.AsyncNodeAction.node_async;

@Slf4j
public class PbbfcsNode {

    public static AsyncNodeAction<MessagesState<String>> create() {
        return node_async(state -> {
            log.info("执行评标办法参数节点");
            // 生成评标办法参数内容
            String content = "这是生成的评标办法参数示例";

            HashMap<String, Object> result = new HashMap<>();
            result.put("evaluation_params", content);
            return result;
        });
    }
}
